proc commands {nick handle chan otbn1 host} {
global botnick otbnversion
  set otbnversion "4Running X-Bot 2003 by LogicX Software"    
  putlog "!$nick ($host)! commands"
  putserv "NOTICE $nick :$otbnversion"
if {[matchattr $handle n]} {
  putserv "NOTICE $nick :12BOTNET ADMINISTRATOR: CORE"
  }   
if {[matchattr $handle m]} {
  putserv "NOTICE $nick :12BOTNET CO-ADMINISTRATOR: REHASH  RESTART  SNDMSG  SNDNOTICE  SERVERS"
  }        
if {[matchattr $handle o]} {
  putserv "NOTICE $nick :12BOTNET OPERATOR: ADDCHAN  REMCHAN  BROADCAST  SAVE  CHANSTATS  DISABLE  ENABLE"
  }
if {[matchattr $handle o|n $chan]} {
  putserv "NOTICE $nick :12CHANNEL ADMINISTRATOR: SAY  ACT"
  }  
if {[matchattr $handle o|m $chan]} {
  putserv "NOTICE $nick :12CHANNEL CO-ADMINISTRATOR: USERADD  USERDEL USERMOD  KILLMODES  MODE"
  }
# Next one modified by |nsid3r to accomidate newly built-in onjoin command
if {[matchattr $handle o|o $chan]} {
  putserv "NOTICE $nick :12OP: TOPIC  OP  DEOP  KICK  BAN  UNBAN  INVITE  ONJOIN"
  }
if {[matchattr $handle o|o $chan]} {
  putserv "NOTICE $nick :12AVOICE: VOICE  DEVOICE  COMMENT SNDNOTE"
  }
if {[matchattr $handle o|v $chan]} {                                 
  putserv "NOTICE $nick :12AVOICE: VOICE  DEVOICE  COMMENT SNDNOTE"
  }  
  putserv "NOTICE $nick :12PUBLIC: VERSION  USERLIST  BANLIST  COMMANDS  HELP  ACCESS  CREDITS  ADMIN  AUTH  PASS"
  putserv "NOTICE $nick :To get help on a command type 4(/msg) $botnick help <command>"
  }


